<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/5/30
 * Time: 14:18
 */

namespace app\Validate;


class ProductCategoryAddValidate extends BaseValidate {
    protected $rule = [
//        'uid' =>'require',
        'name'=>'require',
        'cover_img'=>'require',
        'sort'=>'require|number',
        'level'=>'require|number',
        'pid'=>'require|number',
    ];
    protected $message =  [
//        'uid' =>'请上传商家id',
        'name'=>'请上传名称',
        'cover_img'=>'请选择图片',
        'sort'=>'请填写排序号',
        'level'=>'请设置等级',
        'pid'=>'请填写上一级id',

    ];
}